/*
============================================================================
 Name        : $(Basename)Document.cpp
 Author      : $(Author)
 Version     :
 Copyright   : $(Copyright)
 Description : Application document class (model)
============================================================================
*/

// INCLUDE FILES
#include "$(Basename)AppUi.h"
#include "$(Basename)Document.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// C$(Basename)Document::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
C$(Basename)Document* C$(Basename)Document::NewL( CEikApplication&
	aApp )
	{
	C$(Basename)Document* self = NewLC( aApp );
	CleanupStack::Pop( self );
	return self;
	}

// -----------------------------------------------------------------------------
// C$(Basename)Document::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
C$(Basename)Document* C$(Basename)Document::NewLC( CEikApplication&
	aApp )
	{
	C$(Basename)Document* self =
		new ( ELeave ) C$(Basename)Document( aApp );

	CleanupStack::PushL( self );
	self->ConstructL();
	return self;
	}

// -----------------------------------------------------------------------------
// C$(Basename)Document::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void C$(Basename)Document::ConstructL()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// C$(Basename)Document::C$(Basename)Document()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
C$(Basename)Document::C$(Basename)Document( CEikApplication& aApp )
	: CAknDocument( aApp )
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// C$(Basename)Document::~C$(Basename)Document()
// Destructor.
// ---------------------------------------------------------------------------
//
C$(Basename)Document::~C$(Basename)Document()
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// C$(Basename)Document::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* C$(Basename)Document::CreateAppUiL()
	{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return ( static_cast <CEikAppUi*> ( new ( ELeave )
		C$(Basename)AppUi ) );
	}

// End of File